<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/css/layui.css" tppabs="http://layui/dist/css/layui.css"  media="all">
    <link href="../static/layui/css/layui.css" rel="stylesheet">
</head>
<ul class="layui-nav">
  <li class="layui-nav-item layui-this"><a href="{{ url_for('index') }}">Home</a></li>
  <li class="layui-nav-item">
    <a href="{{ url_for('hard') }}">服务器信息</a>
  </li>
  <li class="layui-nav-item"><a href="">k8s集群管理</a>
      <dl class="layui-nav-child">
      <dd><a href="{{ url_for('k8s') }}">k8s集群信息</a></dd>
      <dd><a href="{{ url_for('new_deploy') }}">创建Yaml</a></dd>
      <dd><a href="{{ url_for('deploy') }}">预览编辑Yaml</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item">
    <a href="javascript:;">数据中间件</a>
    <dl class="layui-nav-child">
      <dd><a href="{{ url_for('find') }}">Redis</a></dd>
      <dd><a href="{{ url_for('kafkaui') }}">kafka_ui</a></dd>
      <dd><a href="">MongoDB</a></dd>
      <dd><a href="">MySQL</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item">
    <a href="javascript:;">运维自动化</a>
    <dl class="layui-nav-child">
      <dd><a href="{{ url_for('webssh') }}">web_ssh</a></dd>
      <dd class="layui-this"><a href="{{ url_for('crontab') }}">定时任务</a></dd>
      <dd><a href="{{ url_for('mssh') }}">自动化执行</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item"><a href="{{ url_for('monitor') }}">监控平台</a></li>
  <li  class="layui-nav-item" style="float: right" ><a href="">{{ username }}</a>
      <dl class="layui-nav-child">
      <dd><a href="{{ url_for('logout') }}">注销</a></dd>
    </dl>
  </li>
</ul>
<body>
<div>
<center>
<h2>插入数据</h2><br>
<form action="/submit"method="post">
<label>Key：&nbsp</label>
<input type="text" name="keys" placeholder="keys" ><br><br/>
<label>Values: </label>
<input type="text" name="values" placeholder="values"><br><br/>
<div ><input type="submit" value="提交"></div>
</form>
</center>
</div>
<script src="../static/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
<script>
layui.use('element', function(){
  var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

  //监听导航点击
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    layer.msg(elem.text());
  });
});
</script>
</body>
</html>